package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 成绩申诉记录表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("exam_score_appeals")
public class ExamScoreAppeals extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    /** 考试ID */
    @TableField("group_id")
    private Long groupId;

    /** 考试ID */
    @TableField("exam_id")
    private Long examId;

    /** 学生考试记录ID */
    @TableField("student_record_id")
    private Long studentRecordId;



    /** 题目作答记录ID */
    @TableField("question_id")
    private Long questionId;

    /** 题目作答记录ID */
    @TableField("question_answer_id")
    private Long questionAnswerId;

    /** 学生ID */
    @TableField("student_id")
    private Long studentId;

    /** 申诉内容 */
    @TableField("appeal_content")
    private String appealContent;

    /** 申诉内容 */
    @TableField("old_score")
    private BigDecimal oldScore;

    /** 申诉时间 */
    @TableField("appeal_time")
    private Date appealTime;

    /** 申诉状态：0-待处理 1-处理中 2-已处理 */
    @TableField("appeal_status")
    private Integer appealStatus;

    /** 处理人ID */
    @TableField("handler_id")
    private Long handlerId;

    /** 处理时间 */
    @TableField("handle_time")
    private Date handleTime;

    /** 处理结果 */
    @TableField("handle_result")
    private String handleResult;

    /** 部门ID */
    @TableField("dept_id")
    private Long deptId;
}
